package com.cz.datafetcher.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName(value = "productionDevices")
@Data
@ApiModel(value = "生产设备",description = "采集数据所属的生产设备")
public class ProductionDevices {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer Id;

    @TableField("sn")
    @ApiModelProperty(value = "设备序列号")
    private String sn;

    @TableField("name")
    @ApiModelProperty(value = "设备名称")
    private String name;

    @TableField("belongTo")
    @ApiModelProperty(value = "设备属于，可以属于企业，厂房，班组等")
    private Integer belongTo;
}
